package com.extension.company.view.home.search;

import android.content.Context;
import android.support.v7.widget.RecyclerView;

import com.extension.company.admin.R;
import com.extension.company.common.mvc.BaseFragment;
import com.extension.company.view.adapter.BrokeageFragmentAdapter;

/**
 * 作者：zwk
 * 时间：on 2019/2/21 14:27
 * 功能：搜索结果的佣金fragment
 */
public class SearchResultBrokerageFragment extends BaseFragment {

	private RecyclerView recyclerView;
	private Context context;


	@Override
	public void onAttach(Context context) {
		super.onAttach(context);
		this.context = context;
	}

	@Override
	public void init() {
		initView();
		initViewListener();
		initData();

	}


	private void initView() {
		recyclerView = getViewById(R.id.brokerage_rl);
	}

	private void initViewListener() {

	}

	private void initData() {

		BrokeageFragmentAdapter adapter = new BrokeageFragmentAdapter(context);

		recyclerView.setAdapter(adapter);
	}


	@Override
	public int getMainLayout() {
		return R.layout.fragment_search_result_brokerage;
	}
}
